import request from '../utils/request'

// 获取商品详情
export function getProductDetail (id) {
  return request.get(`/purchare/${id}`)
}

// 立即购买
export function PayOrder (data) {
  return request.post('/buyjoinshoppingcart', data)
}

// 加入购物车
export function AddShopCart (data) {
  return request.post('/buyjoinshoppingcart/shoppingcart', data)
}
